package com.gr.dmbackend.controller.dormaddmin;

import com.alibaba.fastjson.JSONObject;
import com.gr.dmbackend.service.dormaddmin.GetPendingRepairListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetPendingRepairListController {

    @Autowired
    private GetPendingRepairListService getPendingRepairListService;

    @GetMapping("/api/dormaddmin/get-pending-repair-list")
    public JSONObject getPendingRepairList(@RequestParam int page) {
        return getPendingRepairListService.getPendingRepairList(page);
    }

}
